﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
using WebPrice.Models;

namespace WebPrice.DAL
{
    public class PricingDbContext : DbContext
    {
        public PricingDbContext() : base("PricingDbContext")
        {

        }

        public DbSet<Instrument> Instruments { get; set; }
        public DbSet<ShareClass> ShareClasses { get; set; }
        public DbSet<Price> Prices { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}